﻿<Window x:Class="WorkBench" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
    Title="Window1" Height="640" Width="650" xmlns:my="clr-namespace:AvalonDock;assembly=AvalonDock" Name="Window1">
    <DockPanel >
        <ToolBar DockPanel.Dock="Top" >
            <Button Name="btnNew">
                <Image Source="/PowerShellWorkBench;component/Images/New.png" Height="16" SnapsToDevicePixels="True" Name="Image2" />
            </Button>
            <Button Name="btnOpen">
                <Image Source="/PowerShellWorkBench;component/Images/Open.png" Height="16" SnapsToDevicePixels="True" />
            </Button>
            <Button Name="btnSave">
                <Image Source="/PowerShellWorkBench;component/Images/Save.png" Height="16"/>
            </Button>
            <Separator/>
            <Button Name="btnCut">
                <Image Source="/PowerShellWorkBench;component/Images/Cut.png" Height="16"/>
            </Button>
            <Button Command="Copy" Name="btnCopy">
                <Image Source="/PowerShellWorkBench;component/Images/Copy.png" Height="16"/>
            </Button>
            <Button Command="Paste" Name="btnPaste">
                <Image Source="/PowerShellWorkBench;component/Images/Paste.png" Height="16"/>
            </Button>
            <Button Command="Delete" Name="btnDelete">
                <Image Source="/PowerShellWorkBench;component/Images/Delete.png" Height="16"/>
            </Button>
            <Separator/>
            <Button   Name="btnExecute" >
                <Image Source="/PowerShellWorkBench;component/Images/Run.png" Height="16" Name="Image1" />
            </Button>
            <Separator/>
            <Button Command="Undo" Name="btnUndo">
                <Image Source="/PowerShellWorkBench;component/Images/Undo.png" Height="16"/>
            </Button>
            <Button Command="Redo" Name="btnRedo">
                <Image Source="/PowerShellWorkBench;component/Images/Redo.png" Height="16"/>
            </Button>
            <Separator/>
            <CheckBox Name="chkWordWrap">
                <Image Source="/PowerShellWorkBench;component/Images/WordWrap.png" Height="16"/>
            </CheckBox>
            <CheckBox Name="chkShowLineNumbers">
                <TextBlock Width="16" TextAlignment="Center">#</TextBlock>
            </CheckBox>
            <CheckBox Name="chkShowParagraphSymbols">
                <TextBlock Width="16" TextAlignment="Center">¶</TextBlock>
            </CheckBox>

        </ToolBar>
        <Grid>
            <my:DockingManager Name="dockManager">
                <my:ResizingPanel Name="ResizingPanel1" Orientation="Vertical">
                    <my:ResizingPanel Name="LeftRightResizingPanel" Orientation="Horizontal">

                        <my:DocumentPane Name="RightPane"   MinWidth="300" HorizontalAlignment="Stretch" > 

                        </my:DocumentPane>
                    </my:ResizingPanel>
                    <DockPanel>
                        <TextBox DockPanel.Dock="Top" Name="txtCmdLine"></TextBox>

                        <my:DocumentPane Name="OutputPane">
                            <my:DocumentContent Title="Output">
                                <TextBox IsReadOnly="True" Name="txtOutput" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"></TextBox>
                            </my:DocumentContent>
                        </my:DocumentPane>

                    </DockPanel>
                </my:ResizingPanel>

            </my:DockingManager>
        </Grid>
        <Menu Height="22" Name="ItemContextMenu" Width="200" Visibility="Hidden" />

    </DockPanel> 
 </Window>
